Using the Tag Filter

Tag Filter collects 3D nodes that have a specific tag assigned.

For example, with tag filters you can:

To use the Tag Filter:

  1. In the Library press Alt and right-click Rendering > Object Sources and select Tag Filter.
  2. In the Properties set:
    NOTE

    Kanzi filters lights in the same way it filters other nodes. When you create a filter that only includes a specific tag, the lights that light the tagged nodes are included in the filter only when you add the tag to those light nodes. It is often more convenient to either:

    • Exclude the nodes you do not want to render.
    • Tag all light nodes with a separate tag and include that tag in all your filters.
  3. To take the Tag Filter into use, in the Draw Objects Render Pass or Draw Objects With Material Render Pass that you use to render the 3D nodes to which you want to apply the filter, set the Object Source property to the Tag Filter or to an object source which collects the Tag Filter.
    For example:
    1. In the Library > Rendering > Render Passes create a Group Render Pass and inside it create:
      • Clear Render Pass
      • Draw Objects Render Pass
    2. In the Library select the Draw Objects Render Pass that you created and in the Properties set the Object Source property to the filter that you created or to an object source which collects the filter. See Using object sources.
    3. In the Project select the Scene node to which you want to apply the filter and in the Properties set the Render Pass property to the Group Render Pass whose child Draw Objects Render Pass uses as its object source the filter you created.

      Kanzi Studio renders the nodes collected by the filter.

Using Tag Filter filters in the API

For details, see the KzuTagFilter class in the API reference.

See also

Using tags

Tutorial: Create reflections

Tutorial: Apply a stencil to 3D content

Tutorial: Progressive rendering

Using the Contains Property Filter

Using the Property Is Equal Filter

Using the Object Type Filter

Using the Sorting Filter

Filters

Rendering

Using object sources